package com.mytx.mapper;

import com.mytx.pojo.LiveRoom;
import com.mytx.pojo.LiveRoomExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LiveRoomMapper {

    @Select("select id,title from live_room  limit #{startRow},#{pageSize}")
    List<LiveRoom>selectByLimit(@Param("startRow")int startRow,@Param("pageSize") int pageSize);

    int countByExample(LiveRoomExample example);

    int deleteByExample(LiveRoomExample example);

    int deleteByPrimaryKey(String id);

    int insert(LiveRoom record);

    int insertSelective(LiveRoom record);

    List<LiveRoom> selectByExample(LiveRoomExample example);

    LiveRoom selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") LiveRoom record, @Param("example") LiveRoomExample example);

    int updateByExample(@Param("record") LiveRoom record, @Param("example") LiveRoomExample example);

    int updateByPrimaryKeySelective(LiveRoom record);

    int updateByPrimaryKey(LiveRoom record);
}